<?php
// +----------------------------------------------------------------------
// | secrets.php - MyPT
// +----------------------------------------------------------------------
// | Copyleft (c) 2010 By Asxzy All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: Asxzy <asxzy@163.com>
// +----------------------------------------------------------------------
$TPconfig = require_once('config.inc.php');
if (isset($TPconfig)){
	if(empty($TPconfig["DB_PORT"]))
		$mysql_host = $TPconfig["DB_HOST"];
	else
		$mysql_host = $TPconfig["DB_HOST"].':'.$TPconfig["DB_PORT"];
	$mysql_db = $TPconfig["DB_NAME"];
	$mysql_user = $TPconfig["DB_USER"];
	$mysql_pass = $TPconfig["DB_PWD"];
	if (empty($TPconfig["DB_PREFIX"]))
		$mysql_prefix = '';
	else
		$mysql_prefix = $TPconfig["DB_PREFIX"].'_';
	$torrents_path = $TPconfig['UPLOAD_PATH'].$TPconfig['TORRENTS_PATH'];
	$DEFAULTBASEURL = $TPconfig['ANNOUNCE_URL'];
}else{
	$mysql_host = 'localhost';
	$mysql_db = 'mypt';
	$mysql_user = 'root';
	$mysql_pass = '';
	$prefix = '';
	$DEFAULTBASEURL = 'http://localhost/mypt/announce.php';
	$torrents_path = './uploads/torrents/';
}

$announce_interval = 5;	// 客户端响应间隔时间(秒)
?>